#include <my_head.h>

int main(int argc, const char *argv[]){
    int fd = open("hello.txt", O_WRONLY|O_CREAT|O_TRUNC, 0666);
    if(-1 == fd)
        ERR_LOG("open error");
    printf("文件打开成功\n");

    if(close(fd))
    printf("11111\n"); 
    close(0);
    close(1);
    close(2);
    printf("22222\n"); 

    return 0;
}